org.eclipse.vtp.desktop.editors.core.model
Class UIConnector

java.lang.Object
  extended by org.eclipse.vtp.desktop.editors.core.model.UIComponent
      extended by org.eclipse.vtp.desktop.editors.core.model.UIConnector
All Implemented Interfaces:
java.beans.PropertyChangeListener, java.util.EventListener, ComponentListener

public class UIConnector
extends UIComponent


Nested Class Summary
 class UIConnector.ConnectorEndPoint
           
static interface UIConnector.GraphPoint
           
 class UIConnector.LineLabel
           
 class UIConnector.MidPoint
           
 
Constructor Summary
UIConnector(Connector connector, UIElement origin, UIElement destination)
           
UIConnector(org.w3c.dom.Element connectorDesign, Connector connector, UIElement origin, UIElement destination)
           
 
Method Summary
 void addMidPoint(int x, int y)
           
 Connector getConnector()
           
 UIElement getDestination()
           
 UIConnector.LineLabel getLabel()
           
 java.util.List getMidPoints()
           
 org.eclipse.swt.graphics.Point[] getPoints()
           
 UIElement getUIOrigin()
           
 void insertMidPoint(int index, int x, int y)
           
 void removeMidPoint(int index)
           
 void storeUIConnector(org.w3c.dom.Element canvasElement)
           
 
Methods inherited from class org.eclipse.vtp.desktop.editors.core.model.UIComponent
addListener, addPropertyListener, componentChanged, componentDeleted, fireChange, fireDelete, firePropertyChange, propertyChange, removeListener, removePropertyListener
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UIConnector

public UIConnector(Connector connector,
                   UIElement origin,
                   UIElement destination)

UIConnector

public UIConnector(org.w3c.dom.Element connectorDesign,
                   Connector connector,
                   UIElement origin,
                   UIElement destination)
Method Detail

storeUIConnector

public void storeUIConnector(org.w3c.dom.Element canvasElement)

getConnector

public Connector getConnector()

getUIOrigin

public UIElement getUIOrigin()

getDestination

public UIElement getDestination()

getLabel

public UIConnector.LineLabel getLabel()

getPoints

public org.eclipse.swt.graphics.Point[] getPoints()

getMidPoints

public java.util.List getMidPoints()

addMidPoint

public void addMidPoint(int x,
                        int y)

insertMidPoint

public void insertMidPoint(int index,
                           int x,
                           int y)

removeMidPoint

public void removeMidPoint(int index)